package com.ykq.system.service.impl;

import com.aaa.common.entity.AclPermission;
import com.aaa.common.vo.Result;
import com.ykq.system.dao.AclPermissionDao;
import com.ykq.system.service.AclPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class AclPermissionServiceImpl implements AclPermissionService {

    @Autowired
    private AclPermissionDao permissionDao;
    @Override
    public Result findByUserId(Long userid) {
        List<AclPermission> aclPermissions = permissionDao.selectByUserid(userid);
        return new Result<List<AclPermission>>(2000,"查询成功",aclPermissions);
    }
}
